import request from '@/utils/request'

// 查询医院介绍列表
export function listAbout(query) {
  return request({
    url: '/yushi/about/list',
    method: 'get',
    params: query
  })
}

// 查询医院介绍详细
export function getAbout(hospitalId) {
  return request({
    url: '/yushi/about/' + hospitalId,
    method: 'get'
  })
}

// 新增医院介绍
export function addAbout(data) {
  return request({
    url: '/yushi/about',
    method: 'post',
    data: data
  })
}

// 修改医院介绍
export function updateAbout(data) {
  return request({
    url: '/yushi/about',
    method: 'put',
    data: data
  })
}

// 删除医院介绍
export function delAbout(hospitalId) {
  return request({
    url: '/yushi/about/' + hospitalId,
    method: 'delete'
  })
}
